<div class="box grid_12">

	<div class="box-content no-pad">
		<table id="sample-table-1" class="table table-striped table-bordered table-hover">
			<thead>
				<tr>
					<th>TT</th>
					<th>Loại app</th>
					<th>Biểu tượng</th>
					<th>Tên app</th>
					<th>Link</th>
					<th>Ngày tạo</th>
					<th>Ngày cập nhật</th>
					<th>Tình trạng</th>
					<th>Lượt xem</th>
					<th>Lượt thích</th>
			
					<th>Tùy chọn</th>
				</tr>
			</thead>
			<tbody>
			<?php $i=0; ?>
			<?php if($apps <> null):?>
			<?php foreach($apps as $app):?>
			<?php $i = $i+1;?>
				<tr>
					 <td><?php echo $i;?></td>
					 <td><?php if($app->apptype == 1):?>
								Android
						<?php endif; ?>
						<?php if($app->apptype == 2):?>
								iOS
						<?php endif; ?>
						<?php if($app->apptype == 3):?>
								Java
						<?php endif; ?>
					 </td>
					 <td><p align="center"><img src="<?php echo $app->appicon?>" width="50%" height="auto"></p></td>
					 <td><?php echo $app->app_name?></td>
					 <td><a href="<?php echo $app->app_link; ?>">Download</a></td>
					 <td><?php echo $app->datecreated?></td>
					 <td><?php echo $app->dateupdated?></td>
					 <td>
					 	<?php if($app->active == 1):?>
					 	  Kích hoạt
					 	  <?php else:?>
					 	  Tạm dừng
					 	  <?php endif;?>
					 </td>
					 <td></td>
					 <td></td> 
					 <td>
 					 <p style="white-space:nowrap">
					 <a href="<?php echo site_url('user/gallery/'.$app->id)?>"><i class="icon-picture bigger-120"></i></a>
					 <a href="<?php echo site_url('user/update_app/'.$app->id)?>"><i class="icon-edit bigger-120"></i></a>
					 <a href="<?php echo site_url('user/del_app/'.$app->id)?>"><i class="icon-trash bigger-120"></i></a></td> 
					 </p>
				</tr>
				<?php endforeach; ?>
				<?php endif;?>
			</tbody>
		</table>
	</div>
</div>


